import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

//平台接口 
export function SaasCompanyList(params) {
    return request({
      url: `${base}/api/saas_company/list`,
      method: 'post',
      data: params,
    })
  }

//对外开放平台创建  
export function AuthorizedCreate(params) {
    return request({
      url: `${base}/api/authorized/create`,
      method: 'post',
      data: params,
    })
  }

 // 对外开放平台 修改  
 export function AuthorizedUpdate(params) {
    return request({
      url: `${base}/api/authorized/update`,
      method: 'put',
      data: params,
    })
  }

//对外开放平台列表
export function AuthorizedApiList(params) {
    return request({
      url: `${base}/api/authorizedApi/list`,
      method: 'post',
      data: params,
    })
  }

  //对外开放平台密匙列表
export function AuthorizedList(params) {
    return request({
      url: `${base}/api/authorized/list`,
      method: 'post',
      data: params,
    })
  }
  
  //对外开放平台 重置密匙  
  export function AuthorizedResetUpdate(params) {
    return request({
      url: `${base}/api/authorized/reset/update`,
      method: 'put',
      data: params,
    })
  }
  
  //对外开放平台 详情
  export function AuthorizedDetail(params) {
    return request({
      url: `${base}/api/authorized/detail`,
      method: 'post',
      data: params,
    })
  }

  // 对外开放平台 启用  
  export function AuthorizedStartUpdate(params) {
    return request({
      url: `${base}/api/authorized/start/update`,
      method: 'put',
      data: params,
    })
  }


  // 对外开放平台 停用  
  export function AuthorizedStopUpdate(params) {
    return request({
      url: `${base}/api/authorized/stop/update`,
      method: 'put',
      data: params,
    })
  }
  